import sympy as sym
from collections.abc import Iterable
def f(arg1,arg2):
    if(len(arg1) != len(arg2)):
        return False
    else:
        for i in range(0,len(arg1)):
            if(sym.Eq(arg1[i],arg2[i]) != True):
                return False
        return True
def isequal(*args):
    arg1 = args[0]
    for i in range(1,len(args)):
        if(isinstance(arg1,Iterable) and isinstance(args[i],Iterable)):
            if f(arg1,args[i]) == False:
                return False
        elif(not isinstance(arg1,Iterable) and not isinstance(args[i],Iterable)):
            if(sym.Eq(sym.simplify(arg1[i]),sym.simplify(args[i])) == True):
                pass
            else:
                return False
        else:
            return False
    return True
a,b,c,x = sym.symbols("a,b,c,x")
re = a*x**2+b*x+c
d = sym.solve(re,x)
kk = [(-b - sym.sqrt(-4*a*c + b**2))/(2*a), (-b + sym.sqrt(-4*a*c + b**2))/(2*a)]
print(d)
print(sym.Eq((-b - sym.sqrt(-4*a*c + b**2))/(2*a),-(b + sym.sqrt(-4*a*c + b**2))/(2*a)))
